package com.amlyc.demo1;

public class TestThread3 implements Runnable {
    public static void main(String[] args) {
        TestThread3 testThread3 = new TestThread3();
        Thread thread = new Thread(testThread3);
        thread.start();
        thread.interrupt();

        for (int i=0;i<2000;i++) {
            System.out.println(i);
        }

    }

    @Override
    public void run() {
        for (int i=0;i<2000;i++) {
            System.out.println("thread:"+i);
        }
    }
}
